<?php
/**
 * Created by PhpStorm.
 * User: 王松
 * Time: 2017/6/21 17:48
 */

namespace App\Transformers;

use App\Models\MedicalPhysical;
use League\Fractal\TransformerAbstract;

class MedicalPhysicalTransformer extends TransformerAbstract
{
    public function transform(MedicalPhysical $physical)
    {
        return [
            'id'             => $physical->id,
            'record_id'      => $physical->record_id,
            'tongue'         => $physical->tongue,
            'examination'    => $physical->examination,
            'cn_examination' => $physical->cn_examination,
            'other'          => $physical->other,
            'remark'         => $physical->remark,
        ];
    }
}